package com.xyzk.diagnose.activity;

import com.xyzk.diagnose.R;
import com.xyzk.diagnose.tools.DeviceLicence;
import com.xyzk.diagnose.view.CToast;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class FlashActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_flash);

		if(!DeviceLicence.CheckDeviceNew(FlashActivity.this)){//检测是否是本公司设备
			CToast.show(R.string.Mainactivity_illegal_device);
//			finish();
		}else{
			new Handler().postDelayed(new Runnable() {

				@Override
				public void run() {
					startActivity(new Intent(FlashActivity.this,MainActivity.class));
					finish();
				}
			},500);

		}
	}
}
